package com.chenglu.android.store.mvp.model;





import com.chenglu.android.bean.SmsCodeBean;
import com.chenglu.android.common.net.RetrofitClientCL;
import com.chenglu.android.goodsinfo.bean.GoodsCommentBean;
import com.chenglu.android.goodsinfo.bean.GoodsInfoBean;
import com.chenglu.android.goodsinfo.bean.ShopsinfoBean;
import com.chenglu.android.index.bean.IndexRecomBean;
import com.chenglu.android.mine.bean.CommonDataBean;
import com.chenglu.android.store.bean.ChartBangBean;
import com.chenglu.android.store.mvp.contract.StoreContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;
import okhttp3.RequestBody;

/**
 * @author: lyj
 * @Created by Copyright 2023/7/27 Guangzhou Hongma Technology Co., Ltd. All rights reserved.
 *
 */
public class StoreModel implements StoreContract.StoreModel {




    @Override
    public Observable<ShopsinfoBean> getShopinfo(String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getShopinfo(tenantId);
    }


    @Override
    public Observable<ChartBangBean> getShopsTypes(String token,int type,String tenantId) {
        return RetrofitClientCL.getInstance().getApi().getShopsTypes(token,type,tenantId);
    }

    @Override
    public Observable<IndexRecomBean> getLikeLists(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getSearchPage(map);
    }

    @Override
    public Observable<IndexRecomBean> getSearchGoods(Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getSearchPage(map);
    }

    @Override
    public Observable<IndexRecomBean> getShopsRecommendPage(String tenantId,Map<String, String> map) {
        return RetrofitClientCL.getInstance().getApi().getShopsRecommendPage(tenantId,map);
    }


}
